package com.gtw.modules.sys.service;

import com.gtw.modules.entity.TbGroupbuCommodity;

import java.util.List;
import java.util.Map;

/**
 * Created by wuye on 2018/3/15.
 */
public interface TbGroupbuCommodityService {

    TbGroupbuCommodity queryObject(Integer id);

    List<TbGroupbuCommodity> queryList(Map<String, Object> map);

    int queryTotal(Map<String, Object> map);

    void save(TbGroupbuCommodity groupbuyUser);

    void update(TbGroupbuCommodity groupbuyUser);

    void delete(Integer id);

    void deleteBatch(Integer[] ids);

    /**
     * 根据团购ID查询商品
     */
    List<TbGroupbuCommodity> commondityList(Integer groupbuyid);

    /**
     * 查询已开团商品
     * @param map
     * @return
     */
    List<TbGroupbuCommodity> queryListOpen(Map<String, Object> map);

    int queryTotalOpen(Map<String, Object> map);
}
